package com.ax.center.urils;

import java.util.List;

/**
 * @author zy
 * @date 2023/7/6 13:12
 */
public class AuthHolder {

    private static final ThreadLocal<List<String>> authHolder=new ThreadLocal<>();

    public static void setAuthHolder(List<String> auths){
        authHolder.set(auths);
    }

    public static List<String> getAuth(){
        return authHolder.get();
    }

    public static void removeUser(){
        authHolder.remove();
    }
}
